﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyPassword.aspx.cs" Inherits="WEALTH.Manager.User.ModifyPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <link href="../css/admin.global.css" rel="stylesheet" type="text/css" />
    <link href="../css/admin.content.css" rel="stylesheet" type="text/css" />

    <link href="../css/base.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="../Js/jquery.min.js"></script>
    <script type="text/javascript" src="../Js/vanadium.js"></script>
    <script type="text/javascript" src="../Js/public_Validation.js"></script>

    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/jquery.utils.js"></script>
    <link href="../jBox/Skins/Green/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript">
        // 设置标题
        Index.SetTitle('修改密码');
        var isValidatePwd = false;
        function validatePwd() {
            if (jQuery('#txtOldPwd').val().length > 0) {
                var params = { checkPwd: 'true', password: jQuery('#txtOldPwd').val() };
                J.PostJson("ModifyPassword.aspx", params, function (data) {
                    if (data == 0) {
                        isValidatePwd = true;
                    } else {
                        isValidatePwd = false;
                        jQuery('#txtOldPwd').val("");
                        $.jBox.error("密码错误!");
                    }
                }, function () {
                    jQuery('#txtOldPwd').val("");
                    $.jBox.error("密码错误!");
                });
            }
        }
        function setDataCheck() {
            return isValidatePwd;
        }
    </script>
</head>
<body>
<div class="container">

    <div class="location">当前位置：个人专区 -&gt; 修改密码</div>
    
    <div class="blank10"></div>

    <div class="block">
        <div class="h">
            <span class="icon-sprite icon-list"></span>
            <h3>修改密码</h3>             
        </div>
         <div class="tl corner"></div><div class="tr corner"></div><div class="bl corner"></div><div class="br corner"></div>
        <div class="cnt-wp">
            <div class="cnt form">
                <form id="form1" runat="server">
                <table class="data-form" cellspacing="0" cellpadding="0" border=0>
                    <tbody>                       
                        <tr>
                            <td scope="row" align="right" width="100px">当前密码：</td>
                            <td><asp:TextBox ID="txtOldPwd" runat="server" TextMode="Password" MaxLength ="20"  CssClass ="input-normal :required" onblur="validatePwd();"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td scope="row" align="right">输入新密码：</td>
                            <td><asp:TextBox ID="txtNewPwd" runat="server" TextMode="Password" MaxLength ="20"  CssClass ="input-normal :required :password"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td scope="row" align="right">再次输入新密码：</td>
                            <td><asp:TextBox ID="txtNewPwdnd" runat="server" TextMode="Password" MaxLength ="20"  CssClass ="input-normal :required :same_as;txtNewPwd"></asp:TextBox></td>
                        </tr>                        
                        <tr>
                            <td colspan=2 align="center">                                
                                <span class="btn-ctl-span"><asp:Button ID="btnSubmit" runat="server" Text="确定" 
                                    OnClientClick="return setDataCheck();" onclick="btnSubmit_Click"/></span>
                                <span class="btn-ctl-span">
                                <input type="button" value="返回" onclick="javascript:parent.CloseCurrentBox();" /></span>
                            </td>
                        </tr>
                    </tbody>
                </table>
                </form>
            </div>
        </div>
    </div>
</div>    
</body>
</html>